I want to write function,where will be code,that will help me to cancel my move when i press B button