specifying some edge cases for game limit. cleaning up some repeated code.