Added Factory for making the game a lot more flexible.