added new sprite neighbor detection. still bugs to be fixed with the correct sprite and rotation used