added movement and collision detection with solid objects