Its the last bit that I dont understand as my programs output is
$ playership.position -> 0
while it should be

Thanks