public static GameBaseEntity getEntity(String entity, int id) throws Exception{
        for(GameBaseEntity it : entityList) {
            String[] str = it.getClass().getName().split("\\.");
            if(str[str.length-1].equals(entity) && it.getId() == id) {
                return it;
            }
        }
        throw new Exception("This entity doesn't exist");
    }