fixed player collision detection