So what should it do next?

Then ask yourself, "What steps will I take to perform that task?", and write those steps down.

Use those steps as a guide to write the code with. Ask for help if you...