added collition code to player