Quote Originally Posted by iishiii View Post
i have written the code but it have many errors and i cant figure them out because i have very short time
Procrastination sucks, doesn't it. Ask for help sooner; you threw a wall of text, some code, and didn't even bother to specify what errors you encountered and where you got stuck.