added code for inverting board
adding stuff for updating visually
blah