Added check to see if minecraft is open

Added a quick check to see if minecraft is open by checking length of $minecraftwindowid