Save the file by hitting Ctrl+O, then quit nano with Ctrl+X. Close the terminal window. (You can type the command exit to do ...
If you're bored and don't have much spare cash, you don't need to fear a gaming drought. Steam is loaded with games you can play without spending a dime. What's more, many of them are very good indeed ...