fixed some null pointer exceptions conerning deals not being initialised
fixed so we only look for deals that are not expired