added xml writing for game elements into gameeditorcontroller
fixed merge conflict