Add PaintClient.java
Refactor Socket client code