public void switchMenu()
  {
    try
    {
      menuSwitch.get();
    } catch (NullPointerException e)
    {
      while (isReadyFX == false)
      {
      }
    }
    menuSwitch.set(!menuSwitch.get());
  }