Moved common factors of all gamestates into separate base class