my special version of the OpenFL PiratePig example