Fixed the implementation of isVisible function, and other minor fixes to
the code. 

Signed-off-by: waseem <waseem.n.abed@gmail.com>
Merge branch 'master' of https://github.com/waseem000/SOEN-6611-TeamAlpha.git