Added flip function that flips an input value based on a limit
Computer now goes for the kill.