Working on a robot, need some help with the coding aspect

The robot. Sorry if that was a little confusing