src/main/java/com/webcheckers/appl/PlayerLobby.java
public boolean canPlay(String username){
        if(players.containsKey(username)){
           return players.get(username).isAvailable();
        }
        return false;
    }
/**
     *  Checks the state of a certain player to see if they can join a game.
     * @param username the name of the player
     * @return whether or not the player can play a game currently
     */
Checks the state of a certain player to see if they can join a game.
@param username the name of the player
@return whether or not the player can play a game currently
Checks the state of a certain player to see if they can join a game . @param username the name of the player @return whether or not the player can play a game currently
public boolean canPlay(String username){
        if(players.containsKey(username)){
           return players.get(username).isAvailable();
        }
        return false;
    }
public boolean canPlay ( String username ) { if ( players . containsKey ( username ) ) { return players . get ( username ) . isAvailable ( ) ; } return false ; }
Checks the state of a certain player to see if they can join a game.
Checks the state of a certain player to see if they can join a game .