Moved closest hex search in to function; defined invalid hex coordinates; added tracking of clicked hex