Setting the difficulty