refactory function doMovimentAndGun() --> think()