improved player self collision detection

now it should work properly in low speeds, regardless of FPS