changed player states to enum