Event data type and performEvent function. Checks if event conditions are met and applies the event to the gameState if so.
Basic GameState module with placeholder Player and Map types.