This is a classic game called Gomoku. Players can play with their friends. If players marks 5 [O] or [X] as vertical, horizontal or diagonal line they are winners.