Made Engine.get_state() return a string for server use