[Board] fixed bug where ends where not counted properly