I don't understand any of that code, can you start with something simpler? Such as declaring variables and/or if statements.