improved collision and fixed player visibility