Converted into state based game. Menu state added.