Added logic for calibration

Also updated the tile replacement and a new message to the console when
game wins.