Added pixel perfect collision detection