Use onCollision in player.js