How to program ATmega328P Microcontroller for 2 Axis Control

/* The below code is in the public domain. With the controller board powered up,
with 5 volts, will allow for the uploading of code to the board via computer.
The below 'serial' code will now be in memory, and will light the internal led?
// kenwood120s, I'm sorry for not mentioning your name, and I know not how to
re-open a closed thread
// Keep in mind the pull-up means the pushbutton's logic is inverted. It goes
// HIGH when it's open, and LOW when it's pressed. Turn on pin 13 when the
// button's pressed, and off when it's not:
The additional code is what I want to do:
// When digitalWrite(5, LOW); is low,- means 'system is not 'on control'
// System must be manually aimed at the sun, digitalRead(A5, LOW); must be 'HIGH'
// When digitalWrite(6, HIGH); is high, motor is energized- means 'off control'
// When digitalWrite(6, LOW); is low, motor is deenergized- means 'on control'
// etc.. please indicate, yes or no, if I'm on the right path. It compiles?
// Why sensorVal seems to work, when digitalRead don't?
// Why error "exit status 1 expected '}' at end of input */

void setup() {
//start serial connection
Serial.begin(9600);
//configure pin 2 as an input and enable the internal pull-up resistor
pinMode(2, INPUT_PULLUP);
pinMode(13, OUTPUT);
}

void loop() {
//read the pushbutton value into a variable
int sensorVal = digitalRead(2);
//print out the value of the pushbutton
Serial.println(sensorVal);
//print out the value of the input sensor
int digitalRead(A0);

if (sensorVal == HIGH) {
digitalWrite(13, LOW);
} else {
digitalWrite(13, HIGH);

if (sensorVal, A0 == HIGH) {
digitalWrite(5, LOW);
} else {
digitalWrite(5, LOW);

if (sensorVal, A1 == HIGH) {
digitalWrite(6, HIGH);
} else {
digitalWrite(6, LOW);
}