Use your arrow keys (only for players with keyboards). The goal is to eat all the dots. The center box opens when you finish the dots outside. After finishing the dots, you are safe from the ghost.