update the gameEngine.cpp to handle better the collision on windows