def check_game(board, last_move):
	"""
	check if any player has managed to get 3 marks in a row, column or diagonally.

	:param {String[]} board : current board with marker locations of both players
	:param {int} last_move : between 1-9 where the most recent marker was put.

	:return {Boolean} : True if player who played "last_move" has won. False otherwise
	"""
	win = ["012","345", "678", "036", "147", "258", "048", "246"]
	win = list(filter(lambda string : str(last_move) in string, win))
	for x in win:
		if board[int(x[0])] == board[last_move]:
			if board[int(x[1])] == board[last_move]:
				if board[int(x[2])] == board[last_move]:
					return True
	return False