Update Main.java

Added calls for new events and function to check for table.