implementing collisions in TCPServer