* Using state variable instead of flags for player status
 * Updating tests