updated difficulty and fixed some bugs