Pro tip #64: If you want help with code that isn't working how you expect it to work, then showing that code is very helpful.
This does two things for us, the ones helping you. First it shows us what you have already, what you still need to implement, and exposes any logic errors you may have. Second, and in my opinion the most important, showing us your progress proves that you are actually working on solving the issue on your own, and are not just posting in hopes of free copy-paste code.
Pro tip #128: Avoid at all cost the Double-Post-of-Doom
On a personal aside; expecting a lot of answers to a vague question over the course of 3 hours is a little unreasonable, given that this community if comprised of individuals from all over the World.
Edit: I don't sugar coat anything