Added check to see if Minecraft is open