Implementation of a state pattern for the different windows in the game