Refactored the server and client scenes into one.