Computer as White Player

Working on some logic to get the computer to play as the white player.
Having trouble getting the computer to do jumps as the white player.