Created new manager for the server and a new state_game for the server.
Created client and server to deal with the connection.
Made manager be the client side.
Changed player so that the actions were applied in an action function
instead of happening into the receive_input method.