almost done. game handling work. only sockets need work