Game engine bug fixing and modules added

Moved pieces of pork.py into meaningful module files. Bug fixes and
skeleton code for food/hunger added in.

See TODO.