Update index.js

Changed the state player so that it shows the state correctly