added BSnake class