Read a trajectory file and move the ball accordingly
Re-ident according to PEP8 and fix undefined variable error