Implement state machine on netbeans.
More modification on Game state machine based on cannon cave man