game: fix collision detection order, floor detection and jumping