fix several code analysis and compiler warnings within the game code
 * suggested parenthesis
 * unused variables
 * missing break statements