added more functionality for the player and set up a net