adding functions for defence move