Fixed Game over and added cutoff index.