Added gamestate and state stack. Changed map fence representation to accomodate different directions