my collision detection code is not working properly ... please check this code and remove all the errors for me thanks

..... u can use this file as my car ( cube.x ) http://www.geocities.com/rehansites2/carx.zip
CODE:
sync on
sync rate 60
hide mouse
for x = 1 to 10
make object cube x,100
position object x,rnd(2000),0,rnd(2000)
next x
load object \"c:\\cube.x\",11
Set object collision to spheres 11
do
If Object collision(11,0)>0 then position object 11,X#,0,Z#
X# = Object position x(10)
Z# = Object position z(10)
if rightkey()=1
y=wrapvalue(y+1)
`angley#=wrapvalue(angley#+5.0)
endif
if leftkey()=1
y=wrapvalue(y-1)
`angley#=wrapvalue(angley#-5.0)
endif
if upkey()=1
move object 11,10
endif
if downkey()=1
move object 11,-10
endif
`rotate both camera and object
yrotate object 11,y
yrotate camera y
` make the camera to follow the object in a circular manner
position camera object position x(11)-(sin(object angle y(11))*10),object position y(11)+3,object position z(11)-((cos(object angle y(11)))*10)
xrotate camera 2
sync
loop