(Code is still not working but I have to go to bed now)