Thanks to griffpatch. this is my second raycasting game I have made and this time I just made it a square so I could mess around with the physics and movement.