added wall-bouncing; cleaned up code, added boolean for whether or not moving forward