Fixed error checking in GameHandler