added surface error handling for game logic.. if theres an error in game logic then game shuts down