Clear Button Warning added

Before a pattern is cleared from the grid and session there is now a pop-up warning that asks for confirmation.

This code is in need of review.