Added a bunch of stuff

Includes CheckGamestate, MainListener and PlayerJoined/PlayerLeft
listeners.