added board drawing and input