I am trying to build a chess engine in javascript. So far I have the initial set up where the pieces are placed and empty squares are marked with a \'#\'. When I change the sq