fixed ring condition, board size 5 doesn't work anymore - needs to be
fixed