Periodic solutions of dynamical systems with bounded potential