Converts Timer and Game Over methods to Ruby