test and refactor function for picking the correct depth based on difficulty and board size