Game knows when it's over