working on game complete code