Update functions now take player pointer to do collision detection inside it