Terminal game based on math problems