Implemented simple movement and collision detection