adding types and game functions