Contest 4

My entry to contest-4 with fixing the page reloading bug and removed some unused code