moved findTeamabilities to solve maze