localStorage bugs fixed and leader board working