Adding some more checks

1. For checking when the Game will be over
2. Addec checks for avoiding NullPointer Exceptions

Signed-off-by: Mayuresh Janorkar <janorkar@usc.edu>