Added pixel perfect collision for the entities