Added player functionality on game view with JS