Working out some bugs, objectoutputstream doesn't write