added calculating collision detection

Still glitches through platforms sometimes depending on player speed
Collision left working as well as right