setting the base for the ai. the function possibleDirections is needed for that purpose, but it doesn't seem to work properly yet