refactored isPossibleToMove in Tank.js