It’s a lot easier to help with your code if you post your actual code rather than an image of it. That way we can actually test it, run it, etc. Maybe you could post it in a comment? (Don’t forget to use the code formatting tool so it formats properly).