there is a cycle which displays color-continuously. And there's a user who clicks the game start, pause and exit. I can not bound pause during a loop ((somebody tell me?
If you want to be able to pause the game at any time during the program, then you need to start another thread and run it in parallel with your program. The thread should continuously checks for your keyboard input and pause when it receives the command, then stops pausing when it detects the key again