The sword follows the mouse and you can press the space bar to make the sword move to slice the watermelon. This project shows how to use variables to keep score.