Moving logic to boardState

boardState is now responsible position analysis