started implementation for cat mouse problem