Update UIClass.java

Added samename error when adding a game.