added hard level and fixed bug with freeze