Added initial code for player collision with platforms