There is no reason for me to lie to anyone here! I tried your suggestion but it didn't work. I dont know the reason why, maybe it is the bitshifting parts or a bug in Arduino IDE. 99% of the errors are made from humans, i wrote some code which may had some mistakes BUT Arduino IDE is made by humans also! I didn't blame anyone and yes i was surprised that it did work! I don't know exactly who acts weird here but it is not me! I tried all the suggestions and two of them work! I don't want to offend anyone and i dont intend too!
Who knows, maybe it was a combination of mistakes that i did, which led to a non working code when you replied! I really can't know!
What i know is that when dhenry suggested me to change a few things, the code worked, thats all! If someone has a problem with dhenry's replies or anyone else's replies, itsnot me and i dont care who does! What i care is that i came here asking for help and i got it! I know who helped me and who didn't. The rest is history alreay!
Keep up the good work guys
Thank you for your help!