added (somewhat working) functionality to add pieces to the board