Fix spelling error
Remove redundant code and minor refactoring in java bot GUIs