Chess engine and game written in scala