Code reformatting, game now loads properly from the first time