Added player reset and handleInput method