Righting Code HELP!!!

Hi
I am doing a project where i have a motor with a drive belt attached to a piece of wood that is on a slider. When i turn on the motor it turns the motor witch moves the wood up and down. I have two sensors like light sensors pots or something else. I was thinking two light sensors and the more light they have the faster the motor goes. and i would i two of them so i can move it up and down. so when there was so much light on one it started moving in that direction. I want to make it like a game so there is a target in the middle and you wont to move the wood onto the target my adjusting the light each sensor gets. I have no code yet please help me

Related to this: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1273232394/7#7

We call it "debugging", not "righting" :sunglasses: