changed the pixel interval for testing point collision