got turnsLeft working properly and checked it in debugger