added collsion detection to player