Implemented handleMove and getTile method