Made printing from a dict instead of just many if's, works faster