someone has gained access to my computer. please help
Recently someone has gained access to my computer. The first time they interacted with me they made a chat window pop up and started to ask me questions about what i was doing on the computer. I couldn't close the window he was typing in i had to shut my computer off. The window i think said something like controller something. The second incounter was a few mins ago the person really went to town. First they was making my computer talk to me. I know the Mac can talk but it doesn't say stuff like "i like cocaine ******", "**** ", plus many more and called me the N word. This made me believe they can see through my webcam on my mac. And they where saying my username .After 10 mins of them spamming the voices back to back. They then made a Google chrome open up with like 10 tabs that played a werid video like a dude from the saw movies or something/the ring type video. So i close it then they open it again with like 30 tabs... so now i really don't know what to do to stop this. im running snow leopard and updating is not really an option right now. I checked like my firewall cause that's one of the few things i know of and it was off the first time. But the second time the firewall was on and they still did what ever they wanted. I work from my computer and don't want to lose all my programs but i wonder if i just learn how to reset my hole computer would that stop them.i have the snow leopard disc somewhere.
iMac, Mac OS X (10.6.8), 08 imac