switching Gamescene and it says Thread1: EXC_BAD_INSTRUCTIONS on if let cookie= level! line.. It says unexpectedly found nil while unwrapping an Optional value. But how do i fix that exactly? Any advice would be highly valued.
let (success, column, row) = convertPoint(location)
if success {
if let cookie = level!.cookieAtColumn(column, row: row) {
swipeFromColumn = column
swipeFromRow = row
showSelectionIndicatorForCookie(cookie)
if score >= level.targetScore {
}}
}
}