Board class added and some new functions