fixed hard coded player color and proper registering and loggin in