Fixed a lot of the game logic

Right now objects mysteriously become null =-\
playPile's empty method was bound by a non-existent field