YAY PROLOG, I DON'T REALLY KNOW WHAT MY CODE DOES