Arduino mega programing error

Where is your brake() function ?