added more gamestate logic. Added basic tile class