Added generating patterns depending on the difficulty.