This by far is one of the most complex games I have ever made. Space to start a game. Use the arrow keys to move Luigi to the ghost in the center. You can not move through walls. The ghost will disappear and move randomly without walking through walls. There will be flashes of lightning that reveal the ghost as long as the ghost is in the lighting's range. Once you touch the ghost, try to hold onto it for as long as possible because once you let go, the ghost will go somewhere completely at random. The longer you hold onto the ghost, the lower the variable that says 120 to start will get. Your goal is to get that variable down to 0 before the variable that says 90 seconds next to it reaches 0. The variable above tells how far away from the ghost you are. The ghost will have a five second head start.
Thanks to @Careq2005 for the base.