Made edits to code to make player work again.