improved movement algorithm, added walls and ball