added colision detection with platforms