added an error checking function into Game.cpp and added a check to see if window fails to create