Get input and draw new board after each input