Added player class and updated code accordingly