refactored cursesgame package