Wrote PHGame class