Edited checkCollisions Method

Now uses dictionary correctly