Added collision checking to print#