rpglib now carries all main game functions