Added some functionality for resetting the board properly