complete

fun complete()

Complete detection and calculate final result.