added Portal state machine, working combat loop
grid function to choose a location