As TomGeorge points out, read the 'how to use this forum - please read' post. Post your code rather than attach it.
If you have a read at the code you will see where i attached everything.
Not good enough. Post a wiring diagram. (Also as TomGeorge requests). Pencil, paper and a camera are good enough if you provide proper detail like pin numbers.
help me if my code is correct.
Easy enough to determine. Wire everything up, upload the sketch and see if it works. Although I would prefer a more 'step by step' approach. Is this the first time you have used an arduino?
First try the blink tutorial. No wiring needed and this lets you know that you can successfully upload a sketch.
Then try a servo sweep tutorial to confirm you can wire up servos successfully.
Then a Joystick tutorial.