Fixed the rotation angle and angle calcuation. Bouncing works better now, but still breaks at the endpoints of walls.
Merge pull request #2 from Cawb07/master

Fixed the rotation angle and angle calcuation. Bouncing works better now...