added new board class
added more flexibility for whole script
added new way to figure out if door opened or closed
added state display