added getScoreOfBoard method that returns a Score object