Added server.cpp file for collision detection.