Implement startBlock, isStanding and isLegal. Add tests.