Fixed legal move & added compilation flag -std=c++11

Also added the print function and the makemove function. playRandomMove is also implemented,
tested and working. Everything working so far.

Signed-off-by: Michael van der Werve <mvdwervex@gmail.com>