Unfortunately, it is impossible to determine the winner of a game without some sort of special comparison function. I'm moving the logic found in this file to a method in application_controller instead.