Added player-platform collision detection