added x and o and function to not change between`