changes keys and board size var