More basic code for defensive bot.

Needs some more changes to work as intended.