Use up down left and right arrow or wads to move and collect as many coins as you can get and watch out for the red guards.
Thanks to sans-sational389 for helping me with the code