Redoing of code for DragonBot