make some checkstyle edits in the gameeditorscreens and removed some duplicated code