Whenever the window's sizes are changed, the game will centralize