Updated serverConnection.java

added interfaces and implemented methods