Am i doing something wrong constant freezing