fixed bug in board valid positions