Update Code/VirtuClassClient/src/logicLayer/Mediator.java

changed if to nested if. shortens the condition and makes the code more readable.